# -*- coding: utf-8 -*-
"""
Module Description: 注册请求接口号
"""
from framework.firefly_dc.action_service import ActionService


def action_register(action_id):
    """
    注册接口
    :param action_id: 接口号
    """
    def decorator(cls):
        cls.action_id = action_id
        ActionService.map_target_by_key(key=action_id, target=cls)
        return cls
    return decorator
